From fd09e037af38ad74c8b65440596b606b05cb2bb0 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Thu, 7 Apr 2005 13:48:33 +0000 Subject: [PATCH] autoscripts which uses ocaml-md5sums --- postinst-ocaml.in | 6 +----- postrm-ocaml.in | 10 +--------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/postinst-ocaml.in b/postinst-ocaml.in index ff8265d5..f34a6809 100644 --- a/postinst-ocaml.in +++ b/postinst-ocaml.in @@ -1,8 +1,4 @@ -MD5SUMS_DIR="/var/lib/ocaml/md5sums" -MD5SUMS_EXT=".md5sums" -MD5SUMS_INDEX="$MD5SUMS_DIR/MD5SUMS" if [ "$1" = "configure" ]; then -#include "update-md5sum.sh" + ocaml-md5sums update fi - # vim: set ft=wml: diff --git a/postrm-ocaml.in b/postrm-ocaml.in index 05dc0ac4..bacb41a9 100644 --- a/postrm-ocaml.in +++ b/postrm-ocaml.in @@ -1,12 +1,4 @@ -MD5SUMS_DIR="/var/lib/ocaml/md5sums" -MD5SUMS_EXT=".md5sums" -MD5SUMS_INDEX="$MD5SUMS_DIR/MD5SUMS" if [ "$1" = "remove" ]; then -#include "update-md5sum.sh" - if [ ! -s $MD5SUMS_INDEX ]; then # index is empty, remove it - rm -f $MD5SUMS_INDEX - fi - rmdir --ignore-fail-on-non-empty $MD5SUMS_DIR `dirname $MD5SUMS_DIR` + ocaml-md5sums update fi - # vim: set ft=wml: -- 2.30.2